package com.academia.controller;

import com.academia.dataAccess.RegisterDAO;
import com.opensymphony.xwork2.ActionSupport;

public class Register extends ActionSupport{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 7863201458410352276L;
	
	private String user;
	private String pass;
	private String confirmPass;
	;
	public String getUser() {
		return user;
	}
	public void setUser(String user) {
		this.user = user;
	}
	public String getPass() {
		return pass;
	}
	public void setPass(String pass) {
		this.pass = pass;
	}
	public String getConfirmPass() {
		return confirmPass;
	}
	public void setConfirmPass(String confirmPass) {
		this.confirmPass = confirmPass;
	}
	
	public void registrar(){
		RegisterDAO registerDao = new RegisterDAO();
		if(pass.equals(confirmPass)){
			int pk = registerDao.register(user, pass);
		}else{
			
		}
	}

}
